import request from '@/utils/request'

// 查询退货单详情列表
export function listReturnDetail(query) {
  return request({
    url: '/sale/returnDetail/list',
    method: 'get',
    params: query
  })
}

// 查询退货单详情详细
export function getReturnDetail(id) {
  return request({
    url: '/sale/returnDetail/' + id,
    method: 'get'
  })
}

// 新增退货单详情
export function addReturnDetail(data) {
  return request({
    url: '/sale/returnDetail',
    method: 'post',
    data: data
  })
}

// 修改退货单详情
export function updateReturnDetail(data) {
  return request({
    url: '/sale/returnDetail',
    method: 'put',
    data: data
  })
}

// 删除退货单详情
export function delReturnDetail(id) {
  return request({
    url: '/sale/returnDetail/' + id,
    method: 'delete'
  })
}
